library(ggplot2)
ggplot(airquality, aes(Temp, Ozone)) +
geom_point() +
geom_smooth(method = "lm")Tutorial-Ejercicio para Rmarkdown/Quarto
File -> New file -> R Markdown/Quarto
Nota
Es probable que necesites instalar install.packages("rmarkdown") y/o install.packages("quarto")
ctrl + shift + k o con:
Tip
El YAML usado para este ejemplo es el siguiente:
---
title: "Tutorial-Ejercicio para Rmarkdown/Quarto"
author:
- name: Garcia Rios Santiago
affiliations:
- name: UNAM
url: https://www.unam.mx/
- name: Mariana Guerrero Osornio
affiliations:
- name: UNAM
url: https://www.unam.mx/
format:
html:
page-layout: full # ocupar toda la página
lang: es # figure, note, warning, code
embed-resources: true # self-contained file
# code-fold: true # retraer código
# code-summary: "Mostrar código"
other-links:
- text: Ver presentación en línea
href: https://santi-rios.github.io/quarto-iframes/#/section
code-links:
- text: Código de la presentación
icon: github
href: https://github.com/santi-rios/quarto-iframes/blob/main/index.qmd
date: "today"
execute:
echo: true
warning: false
toc: true
editor: source
# bibliography: references.bib
number-sections: true
---
Tip
# Mi Primer Encabezado
## S
Tip
Este es un texto con **negrita** y con *cursiva*.
Tip
- Primer ítem
- Segundo ítem
- Tercer ítem
1. Primer paso
2. Segundo paso
3. Tercer paso
Tip
[Página oficial de R](https://www.r-project.org)
Advertencia
Este paso solo funciona con quarto.
Nota
#| eval: false
#| label: fig-airquality
#| fig-cap: "Niveles de ozono y temperatura."
library(ggplot2)
ggplot(airquality, aes(Temp, Ozone)) +
geom_point() +
geom_smooth(method = "lm")
En la ?@fig-airquality observamos el impacto de la temperatura sobre los niveles de ozono.
Nota
Probablemente se necesite tinytex::install_tinytex()
Estimador mínimo cuadrático de la varianza:
$$
S^2=\frac{\sum\limits_{i=1}^{n}{(X_i-\bar{X})^2}}{n-1}
$$
---
title: ""
author: ""
format:
html:
code-fold: true
pdf:
geometry:
- top=30mm
- left=30mm
docx: default
---